package com.chinasoft.goodsManager.servlet;

import com.chinasoft.goodsManager.service.LoginService;
import com.chinasoft.goodsManager.service.impl.LoginServiceImpl;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("")
public class InitializeServlet implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        LoginService loginService = new LoginServiceImpl();
        loginService.transferDatabase();
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException { }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() { }
}
